package com.only4play.portal.common.session;

/**
 * @author liyuncong
 * @version 1.0
 * @file TooManyActiveSessionsException
 * @brief TooManyActiveSessionsException
 * @details TooManyActiveSessionsException
 * @date 2024-06-12
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2024-06-12               liyuncong          Created
 */
public class TooManyActiveSessionsException extends IllegalStateException {

    private final int maxActiveSessions;

    public TooManyActiveSessionsException(String message, int maxActive) {
        super(message);
        this.maxActiveSessions = maxActive;
    }

    public int getMaxActiveSessions() {
        return this.maxActiveSessions;
    }
}
